package net.byg.model;

public class FtpInfo {

    private String ip;
    private int port;
    private String username;
    private String password;

    private String localDir;
    private String serverDir;

    public FtpInfo(){

    }

    public FtpInfo(String ftpserver, String ftpport, String ftpuser, String ftppwd, String ftpgetdir, String ftptodir) {
        this.ip = ftpserver;
        this.port = Integer.parseInt(ftpport);
        this.username = ftpuser;
        this.password = ftppwd;
        this.localDir = ftpgetdir;
        this.serverDir = ftptodir;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLocalDir() {
        return localDir;
    }

    public void setLocalDir(String localDir) {
        this.localDir = localDir;
    }

    public String getServerDir() {
        return serverDir;
    }

    public void setServerDir(String serverDir) {
        this.serverDir = serverDir;
    }

    @Override
    public String toString() {
        return "FtpInfo{" +
                "ip='" + ip + '\'' +
                ", port=" + port +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", localDir='" + localDir + '\'' +
                ", serverDir='" + serverDir + '\'' +
                '}';
    }
}
